<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/10/5
  Time: 11:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <!-- 帖子 -->
    <title>Forum</title>
    <!-- 引入bootstrap框架的样式文件 -->
    <link rel="stylesheet" href="${path}/plugins/bootstrap/css/bootstrap.css">
</head>
<body>

<body style="background-color: #f0f0f0">
<div style="width: 760px; margin: 80px auto;background-color: white">
    <div style="height: 10px"></div>
    <div>
        <div>
            <h2 style="margin-left: 40px">发帖</h2>
        </div>
        <div style="border: 1px solid #fefefe">
            <form action="">
                <div class="form-group" style="margin-top: 20px">
                    <label class="col-sm-2 control-label" style="text-align: center">主题：</label>
                    <div class="col-sm-5" style="margin: -5px 0 0 -30px">
                        <select id="themeId" class="form-control">
                            <option value="-1">请选择主题</option>
                            <c:forEach items="${themeAll}" var="themeAll">
                                <option value="${themeAll.themeId}">${themeAll.themeName}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <br><br><br>
                <div class="form-group">
                    <label class="col-sm-2 control-label" style="text-align: center">分类：</label>
                    <div class="col-sm-5" style="margin: -5px 0 0 -30px">
                        <select id="classId" class="form-control">
                            <option>请选择分类</option>
                            <c:forEach items="${classses}" var="classses">
                                <option value="${classses.classId}">${classses.className}</option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <div class="form-group" style="margin-top: 50px">
                    <label class="col-sm-2 control-label" style="text-align: center">标题：</label>
                    <div class="col-sm-8" style="margin: -5px 0 0 -30px">
                        <input class="form-control" id="title" type="text" placeholder="请输入内容" value="">
                    </div>
                </div>
                <br><br>
            </form>
        </div>

        <div style="width: 100%; background-color: #f8f8f8">
            <div id="editor" style="margin:20px 20px">
            </div>
        </div>
        <div style="float: right;margin: -10px 22px 0 0">
            <%--获取html--%>
            <button id="btn1" class="btn btn-warning" style="background-color: #ff8b3d">发送</button>&nbsp;&nbsp;&nbsp;&nbsp;

            <a href="${path}/forumF/forumFather">
                <button class="btn btn-info" style="background-color: rgb(255, 35, 35)">放弃</button>
            </a>
        </div>
        <div style="height: 20px;clear: both;"></div>

    </div>
</div>

<!-- bootstrap中的js插件依赖于jquery框架,所以必须先引入jquery的js文件 -->
<script src="${path}/plugins/jquery/jquery.min.js"></script>
<!--引入bootstrap的js文件-->
<script src="${path}/plugins/bootstrap/js/bootstrap.js"></script>
<!-- 注意， 只需要引用 JS，无需引用任何 CSS ！！！-->
<script type="text/javascript" src="${path}/js/forum-js/wangEditor-3.1.1/release/wangEditor.min.js"></script>
<script type="text/javascript" src="${path}/js/forum-js/send.js"></script>

</body>
</html>